package cn.dsp.admin.service;

import cn.dsp.admin.entity.Permission;

import java.util.List;

public interface IPermissionService {

    /**添加权限*/
    void insertPerm(Permission permission);

    //查询
    Permission getByPId(Integer pid);

    Permission getByName(String name);

    //修改
    void changePermByPid(Permission permission);

    //删除
    void deletePermByPid(Integer pid);

    //查询所有
    List<Permission> getPermAll();
}
